#include "TextureManager.h"
#include "747engine.h"

namespace Engine
{
	TextureManager::TextureManager()
	{
	}
	bool TextureManager::loadTexture(std::string filename)
	{
		sf::Texture temp;
		if(!temp.LoadFromFile("img/"+filename+".png"))
		{
			g_engine->log("failed to load 'img/"+filename+".png'", HIGH);
			return false;
		}
		textureList[filename] = temp;
		return true;
	}
	sf::Texture* TextureManager::getTexture(std::string filename)
	{
		return &textureList[filename];
	}
}